package model;

import java.sql.Date;

public class LeaveDTO {
	
	private String id;
	private String staffName;
	public String getStaffName() {
		return staffName;
	}

	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}

	private Date from;
	private Date to;
	private String status;
	private String reason;
	private String leaveNature;
	private String workDissemination;
	private String contactDetails;
	private LeaveTypeDTO leaveType;
	private UserDTO user;
	private Date applyDate;
	
	public LeaveDTO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public LeaveDTO(String id, Date from, Date to, String status,
			String reason, String leaveNature, String workDissemination,
			String contactDetails, LeaveTypeDTO leaveType, UserDTO user,
			Date applyDate) {
		super();
		this.id = id;
		this.from = from;
		this.to = to;
		this.status = status;
		this.reason = reason;
		this.leaveNature = leaveNature;
		this.workDissemination = workDissemination;
		this.contactDetails = contactDetails;
		this.leaveType = leaveType;
		this.user = user;
		this.applyDate = applyDate;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getFrom() {
		return from;
	}

	public void setFrom(Date from) {
		this.from = from;
	}

	public Date getTo() {
		return to;
	}

	public void setTo(Date to) {
		this.to = to;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getLeaveNature() {
		return leaveNature;
	}

	public void setLeaveNature(String leaveNature) {
		this.leaveNature = leaveNature;
	}

	public String getWorkDissemination() {
		return workDissemination;
	}

	public void setWorkDissemination(String workDissemination) {
		this.workDissemination = workDissemination;
	}

	public String getContactDetails() {
		return contactDetails;
	}

	public void setContactDetails(String contactDetails) {
		this.contactDetails = contactDetails;
	}

	public LeaveTypeDTO getLeaveType() {
		return leaveType;
	}

	public void setLeaveType(LeaveTypeDTO leaveType) {
		this.leaveType = leaveType;
	}

	public UserDTO getUser() {
		return user;
	}

	public void setUser(UserDTO user) {
		this.user = user;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	@Override
	public String toString() {
		return "LeaveDTO [id=" + id + ", staffName=" + staffName + ", from="
				+ from + ", to=" + to + ", status=" + status + ", reason="
				+ reason + ", leaveNature=" + leaveNature
				+ ", workDissemination=" + workDissemination
				+ ", contactDetails=" + contactDetails + ", leaveType="
				+ leaveType + ", user=" + user + ", applyDate=" + applyDate
				+ "]";
	}
	
	
	

}
